home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / comline.zip / COMLINE.DOC < prev    next >
Text File  |  1990-10-20  |  8KB  |  163 lines

  1.    Comline - Coml_Bat - ComDiag - Comline - Coml_Bat - ComDiag - Comline
  2.  
  3.                 A command line parameter generator for use with
  4.                 SPITFIRE BBS Software V. 3.0
  5.  
  6.    Comline - Coml_Bat - ComDiag - Comline - Coml_Bat - ComDiag - Comline
  7.  
  8.    The Basics:
  9.  
  10.       Comline grew from a request by another Spitfire sysop for assistance
  11.    in setting up a Door program for another type of BBS software which 
  12.    required passing several parameters normally found in the SFDOORS.DAT
  13.    file on a command line; the door program not being able to read the
  14.    information directly. Having had such a project myself on an earlier 
  15.    version of Spitfire, I had created a simple routine to read SFDOORS.DAT
  16.    and compile the necessary command line to run the program. I decided to 
  17.    adapt this routine to a more universally compatable routine than the 
  18.    single use quick-and-dirty fix I had previously used, and Comline is the 
  19.    result. Comline reads the SFDOORS.DAT file, creates one additional and
  20.    often required variable, and then reads and interprets a command line
  21.    description created by the sysop to fit his needs. Comline interprets the
  22.    parameter requirements, and prepares a command line with the appropriate
  23.    variables and text. 
  24.       Three versions of the program have been included in this release;
  25.    COMLINE.EXE, COML_BAT.EXE and COMDIAG.EXE. COMLINE.EXE is the simplest to
  26.    use; create the command line description; copy comline, SFdoors.dat and
  27.    the description (COMLINE.DAT) to the door program directory, and run
  28.    COMLINE to start the door. Comline will remain in memory during the
  29.    execution of the door, shelling to DOS to run the program. This does
  30.    require approximately 105K of RAM to operate, however. While Spitfire
  31.    releases all memory to the door programs, and this approach will allow
  32.    99% of all doors I have encountered to operate, a second version of the
  33.    program has been included for those with tighter memory constraints.
  34.    COML_BAT.EXE performs exactly as described above for COMLINE.EXE, but
  35.    instead of issuing the SHELL command and running the door itself; it 
  36.    creates a single line batch file, called SHELLINE.BAT, which contains
  37.    the appropriate parameters. This file can be used with the CALL function
  38.    to run the door, and uses no memory above that required for the door
  39.    itself. BE CERTAIN TO USE "CALL" TO EXECUTE THIS FILE, as SF.BAT will
  40.    transfer control to the SHELLINE.BAT file and not return to the BBS if
  41.    you simply execute the SHELLINE.BAT file. The third version of the
  42.    program, COMDIAG.EXE, simply prints out the command line as created to
  43.    the screen, or to the printer if used as in COMDIAG > PRN:, for use in
  44.    diagnosing errors or refining the COMLINE.DAT file.
  45.  
  46.  
  47.    The Parameters:
  48.  
  49.       The COMLINE.DAT file should be built with a simple text editor, 
  50.    with no additional characters other than those needed in the command
  51.    line or as variable descriptors. A simple example has been included in 
  52.    this collection to serve as test/learning material. The format of the
  53.    line is simple, requiring nothing more than the text desired and the
  54.    variables needed. The sample line reads as follows:
  55.  
  56.              OVERKILL @V4 @V33 @V7 @V5 @V6
  57.  
  58.    This line is interpreted as follows: 
  59.   
  60.    OVERKILL - text passed on to the command line as typed.
  61.  
  62.    @V4   - Request to COMLINE to include variable #4, the user's first name
  63.  
  64.    @V33  - Request to COMLINE to include variable #33, the user's last name 
  65.  
  66.    @V7   -    "    "  COMLINE "    "       "      #7,  user's remaining time
  67.  
  68.    @V5   -    "    "  COMLINE "    "       "      #5,  baud rate in use
  69.  
  70.    @V6   -    "    "  COMLINE "    "       "      #6,  Comm port in use
  71.  
  72.  
  73.   The program searches the COMLINE.DAT file, and passes any characters not
  74.   identified as variable requests directly on to the command line, and
  75.   replaces the @V# with the appropriate values read from the SFDOORS.DAT
  76.   file. The parameters are numbered exactly as they are found in the
  77.   SPITFIRE manual, page 111, description of the SFDOORS.DAT file. The single
  78.   exception to this layout is variable #33. Many doors ask for the user's
  79.   last name, and will not accept spaces in the name fields. Variable #33 is
  80.   taken from the user's full name in the SFDOORS.DAT file, variable #2, and
  81.   is essentially everything from the first space (dividing the first and
  82.   last names in most cases) to the end of the field, with any further spaces
  83.   replaced with underscore ( _ ) characters to allow for last names with
  84.   two segments like "Von Frankenstein", which would be rendered as
  85.   VON_FRANKENSTEIN. The order of the items should be exactly as required by
  86.   the program to be run, and all variable descriptors (@V#) MUST be entered
  87.   exactly as shown, with an uppercase V and no spaces between the @V and the 
  88.   number.
  89.  
  90.   Variable List:  
  91.   (for those of us too disorganized to find our manuals just now, like me!)
  92.  
  93.          Information taken from SFDORS.DAT 
  94.  
  95.   @V1  - User Number (record number in SFUSERS.DAT)
  96.   @V2  - User's Full Name
  97.   @V3  - User's Password
  98.   @V4  - Users First Name only
  99.   @V5  - Baud Rate of this call
  100.   @V6  - Comm Port 
  101.   @V7  - Time left on this call
  102.   @V8  - # seconds since midnight when entering door
  103.   @V9  - Path to Spitfire command files (C:\SF, etc)
  104.   @V10 - ANSI on, TRUE if ansi set on, FALSE if ansi set off
  105.   @V11 - Security level 
  106.   @V12 - # of Uploads 
  107.   @V13 - # of Downloads
  108.   @V14 - Total time allowed this call
  109.   @V15 - # seconds since midnight when caller logged on
  110.   @V16 - # seconds caller has gained since logged on
  111.   @V17 - Sysop next? TRUE if sysop next set, FALSE if not set
  112.   @V18 - Front End? TRUE if BBS entered through Front-end program
  113.   @V19 - DTE Unlocked - TRUE if DTE not locked, FALSE if DTE Locked (HST)
  114.   @V20 - Max Baud rate for BBS
  115.   @V21 - Error Correction Connection? TRUE if MNP/ARQ, FALSE if non MNP
  116.   @V22 - Last Message Conference selected
  117.   @V23 - Last File area selected
  118.   @V24 - Node Number for this caller
  119.   @V25 - Downloads allowed per day
  120.   @V26 - Files downloaded by this caller today
  121.   @V27 - Total Bytes allowed to download per day
  122.   @V28 - Bytes downloaded by this caller today  
  123.   @V29 - Total K uploaded by this caller
  124.   @V30 - Total K downloaded by this caller
  125.   @V31 - Caller's phone number
  126.   @V32 - Caller's City and State
  127.  
  128.          Information created by COMLINE from SFDOORS.DAT
  129.  
  130.   @V33 - Caller's Last name, with any spaces replaced by _ characters
  131.  
  132.  
  133.   These variables can be used in any order or in any combination on the
  134.   command line, as many times as required by the program, to a maximum
  135.   limitation of 255 characters in the final line created by the COMLINE
  136.   program. 
  137.   
  138.    The Legalese:
  139.  
  140.    This program is released as freeware, fully owned and all rights reserved
  141.    by Butterhoofs' Enterprises. Unlimited license to use this software is
  142.    granted to all registered Spitfire sysops; all others are encouraged to
  143.    register Spitfire at their earliest opportunity if they utilize it, and
  144.    are granted a 30 day period in which to evaluate this software for use
  145.    in their application. No funds are requested of any person, though 
  146.    registered versions of other Spitfire utilities would be gratefully 
  147.    accepted from their authors if they are so inclined and find this
  148.    program useful. Source code for turbo basic is included, and may be 
  149.    incorporated into other products with the prior written or verbal
  150.    permission of the author, Michael Martell, or any officer of
  151.    Butterhoofs' Enterprises. No warranty as to fitness for any purpose or
  152.    application is expressed or implied; and liability under any claim
  153.    will be limited in whole to the purchase price of this software.
  154.    The standard Missouri Guarantee is included: if it breaks, you get to
  155.    keep both halves. The author will provide unlimited telephone or 
  156.    message support at the user's request, either by calling the WOLF'S MOON
  157.    BBS at (207) 772-9093 (19200 HST) or voice at (207) 772-5625, 6:00 to
  158.    11:00 PM Eastern Standard Time. Customized versions for specific purposes
  159.    may be requested of the author, for minimal or no fees depending on the 
  160.    complexity of the request and the hectic nature of the author's schedule
  161.    at the time requested.
  162.  
  163.